import { createStore } from 'redux'
import reducer from './../reducer'

//3.0+版本的redux可以使用composeWithDevTools来开启redux调试工具，4.0不行了
//import { composeWithDevTools } from 'redux-devtools-extension'

const store = createStore(
    reducer,
    window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
)

export default store